package com.eschool.controller.home;

import com.eschool.model.User;
import com.jfinal.core.Controller;

public class RegistController extends Controller{
	public void index(){
		renderFreeMarker("/WEB-INF/tpl/regist.html");
	}
		
	public void saveUser(){
		new User()
		.set("username", getPara("username"))
		.set("realname",getPara("realname"))
		.set("sex", getPara("sex"))
		.set("pwd", getPara("pwd"))
		.set("email", getPara("email"))
//		.set("university_id",getPara("university_id"))
		.save();
		
	}
}
